package com.test.core;

import com.test.dao.LoginDAO;
import com.test.objects.Author;

public class LoginService {
	private LoginDAO loginDAO;
	
	public void setLoginDAO(LoginDAO loginDAO){
		this.loginDAO = loginDAO;
	}
	
	public Author checkAuthor(String username, String password){
		return this.loginDAO.checkAuthor(username, password);
	}
	
	public Author getAuthor(int id){
		return this.loginDAO.getAuthor(id);
	}
}
